package ca.etsmtl.log730.lab3.model;

import java.io.Serializable;

/*
 * JE SUIS UNE SUCCURSALE
 */
public class Branch implements IGotMoney, Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8949816098380422699L;
	private float money = 0;
	private String name = "Succursale";
	
	public Branch(String name, float money) {
		this.name = name;
		this.money = money;
	}
	
	@Override
	public Float getAmount() {
		return money;
	}

	
	public void setAmount(Float amount) {
		this.money = amount;
	}
	
	public void setName(String n) {
		this.name = n;
	}
	public String getName() {
		return name ;
	}
	
	private String ipAddress;
	private Integer port;
	public String getIpAddress() {
		return ipAddress;
	}
	
	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}
	
	public int getPort() {
		return port;
	}
	
	public void setPort(int port) {
		this.port = port;
	}
	
	/*
	 * un montant dans le constr.
	 * avant la connexion
	 */
	
}
